package com.xt.service;

import com.xt.bean.Department;
import org.springframework.data.domain.Page;

/**
 * Created by XT on 2018/5/3.
 */
public interface DepartmentService {
    void saveOrUpdateOne(Department d);

    void deleteOne(String id);

    Department getById(String id);

    Page<Department> getListByPage(int count, int pageNo, String sortDirection, String... sortField);

    Page<Department> getPageByName(String name, int count, int pageNo, String sortDirection, String... sortField);
}
